<template>
  <div class="hook-container">
    <div class="pt-2"></div>
    <van-divider>获取验证码</van-divider>
    <van-button type="default" :disabled="isStart" @click="startDown">{{
      getBtnText
    }}</van-button>
  </div>
</template>

<script setup lang="ts" name="Hook">
import { useCode } from './useCode';

const { isStart, startDown, getBtnText } = useCode({
  count: 10,
});
</script>

<style scoped></style>
